From 853655700731bdb4516d6ff3a1b9edc6b84477e7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 21 Apr 2019 16:33:22 +0000 Subject: [PATCH] gdk: Drop pass-through surfaces With client-side windows gone, this property is no longer used at all, and has been replaced by a similar concept on the widget level. Drop it. --- docs/reference/gdk/gdk4-sections.txt | 2 -- gdk/gdkinternals.h | 1 - gdk/gdksurface.c | 50 ---------------------------- gdk/gdksurface.h | 7 ---- 4 files changed, 60 deletions(-) diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index 9d98cf6641..38683fd479 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -206,8 +206,6 @@ gdk_surface_set_fullscreen_mode gdk_surface_set_keep_above gdk_surface_set_keep_below gdk_surface_set_opacity -gdk_surface_set_pass_through -gdk_surface_get_pass_through gdk_surface_move gdk_surface_resize gdk_surface_move_resize diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index fd23582988..cd01ff8d83 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -150,7 +150,6 @@ struct _GdkSurface guint8 alpha; guint8 fullscreen_mode; - guint pass_through : 1; guint modal_hint : 1; guint destroyed : 2; diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 74ad7af756..c3dadf73ad 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -2316,56 +2316,6 @@ gdk_surface_set_child_input_shapes (GdkSurface *surface) do_child_input_shapes (surface, FALSE); } -/** - * gdk_surface_set_pass_through: - * @surface: a #GdkSurface - * @pass_through: a boolean - * - * Sets whether input to the surface is passed through to the surface - * below. - * - * The default value of this is %FALSE, which means that pointer - * events that happen inside the surface are send first to the surface, - * but if the event is not selected by the event mask then the event - * is sent to the parent surface, and so on up the hierarchy. - * - * If @pass_through is %TRUE then such pointer events happen as if the - * surface wasn't there at all, and thus will be sent first to any - * surfaces below @surface. This is useful if the surface is used in a - * transparent fashion. In the terminology of the web this would be called - * "pointer-events: none". - * - * Note that a surface with @pass_through %TRUE can still have a subsurface - * without pass through, so you can get events on a subset of a surface. And in - * that cases you would get the in-between related events such as the pointer - * enter/leave events on its way to the destination surface. - **/ -void -gdk_surface_set_pass_through (GdkSurface *surface, - gboolean pass_through) -{ - g_return_if_fail (GDK_IS_SURFACE (surface)); - - surface->pass_through = !!pass_through; -} - -/** - * gdk_surface_get_pass_through: - * @surface: a #GdkSurface - * - * Returns whether input to the surface is passed through to the surface - * below. - * - * See gdk_surface_set_pass_through() for details - **/ -gboolean -gdk_surface_get_pass_through (GdkSurface *surface) -{ - g_return_val_if_fail (GDK_IS_SURFACE (surface), FALSE); - - return surface->pass_through; -} - /** * gdk_surface_merge_child_input_shapes: * @surface: a #GdkSurface diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index 155418f4ff..e1e0c53d0d 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -511,13 +511,6 @@ void gdk_surface_set_child_input_shapes (GdkSurface *surface); GDK_AVAILABLE_IN_ALL void gdk_surface_merge_child_input_shapes (GdkSurface *surface); - -GDK_AVAILABLE_IN_ALL -void gdk_surface_set_pass_through (GdkSurface *surface, - gboolean pass_through); -GDK_AVAILABLE_IN_ALL -gboolean gdk_surface_get_pass_through (GdkSurface *surface); - /* * Check if a surface has been shown, and whether all its * parents up to a toplevel have been shown, respectively. -- 2.30.2